package com.itqf.mapper;

import com.itqf.bean.DtsAdmin;
import com.itqf.dto.DtsSearchDto;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface DtsAdminMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(DtsAdmin record);

    int insertSelective(DtsAdmin record);

    DtsAdmin selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(DtsAdmin record);

    int updateByPrimaryKey(DtsAdmin record);

    /**
     * 根据用户名查询未逻辑删除的用户对象
     * @param username
     * @return
     */
    DtsAdmin queryByUserName(@Param("username") String username);

    List<DtsAdmin> queryAdminByPage(DtsSearchDto dto);

    Long queryCountByUserName(String username);

    int insertAdmin(DtsAdmin admin);

    int updateById(DtsAdmin dtsAdmin);
}